<!DOCTYPE html>
<html>
<#include "../../include/resource.html"> 
<body>
<#assign nid="member">
<#include "../../include/header.html">

 
<!--用户中心的主栏目 开始-->
<div id="main" class="clearfix">
<div class="wrap950 ">
	<!--左边的导航 开始-->
	<div class="user_left">
	<#assign mid="m_borrow" >
		<#include "../user_menu.html">
	</div>
	<!--左边的导航 结束-->
	
	<!--右边的内容 开始-->
	<div class="user_right">
		<div class="user_right_menu">
			<#assign borrow_type="limitapp">
			<#include "borrow_menu.html">
		</div>
		
		<div class="user_right_main">
		<div class="user_main_title alert"> 
		额度申请原则上每次最多申请1万
		</div>
		<#if !session_user.real_status?exists||session_user.real_status==0||session_user.real_status==2>
			<div align="center"><font color="#FF0000"><br/>
			${webname}提醒你：</font>你还没有通过实名认证，请先通过<a href="${webroot}/member/identify/realname.html"><strong>实名认证!</strong></a>
			</div>
			<br/>
        <#elseif !cache??||!cache.vip_status?exists||cache.vip_status==0||cache.vip_status==2||cache.vip_status==-1>
                <div align="center"><font color="#FF0000"><br />
       		 ${webname}提醒你：</font>你还不是VIP会员，请先成为<a href="${webroot}/member/vip.html"><strong>VIP会员</strong></a>。</div><br /><br /><br />
		<#else>
				<#if amountlist?exists&&amountlist.size()&gt;0>
				<#else>
				<form action="" method="post">
				<div class="user_right_border">
					<div class="e">申请者：</div>
					<div class="c">
						${session_user.username}
					</div>
				</div>
				<div class="user_right_border">
					<div class="e"> 申请类型：</div>
					<div class="c">
						<select name="type">
						<option value="credit" selected="selected">借款信用额度</option>
						</select>
					</div>
				</div>
				
				<div class="user_right_border">
					<div class="e"> 申请金额：</div>
					<div class="c">
						<input type="text" name="account" value="" /> 
					</div>
				</div>
				
				
				<div class="user_right_border">
					<div class="e">详细说明：</div>
					<div class="c">
						<textarea rows="1" cols="40" name="content"></textarea>
					</div>
				</div>
				
				<div class="user_right_border">
					<div class="e">其它地方借款详细说明：</div>
					<div class="c">
					<textarea rows="1" cols="40" name="remark"></textarea>
					</div>
				</div>
				
				
				<div class="user_right_border">
					<div class="e"></div>
					<div class="c">
						<input type="hidden" name="action_type"  value="add"/> 
						<input type="submit" name="name"  value="确认提交" size="30" /> 
					</div>
				</div>
				</form>
				</#if>
				<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" style="width:100%">
						<tr class="head" >
							<td>申请时间</td>
							<td>申请类型</td>
							<td>申请金额(元)</td>
							<td>通过金额(元)</td>
							<td>备注说明</td>
							<td>状态</td>
							<td>审核时间</td>
							<td>审核备注</td>
						</tr>
						<#list list as item>
						<tr>
							<td>${dateformat(item.addtime)}</td>
							<td>借款信用额度</td>
							<td>${item.account}</td>
							<td>${item.account_new}</td>
							<td>${item.content}</td>
							<td><#if item.status==-1>审核未通过<#elseif item.status==1>审核通过<#else>正在审核</#if></td>
							<td><#if item.status!=0&&item.status!=2>${dateformat(item.verify_time)}<#else>-</#if></td>
							<td>${item.verify_remark!"-"}</td>
						</tr>
						</#list>
				</table>
		<!--额度申请 结束-->
		</#if>
		</div>
		</div>
		<script>
var url = "borrow.html?type=${type?default("")}";
var type = "{$magic.request.type}";
var status = "{$magic.request.status}";
function sousuo(){

	var _url = "";
	var dotime1 = jQuery("#dotime1").val();

	var keywords = jQuery("#keywords").val();
	var username = jQuery("#username").val();
	var dotime2 = jQuery("#dotime2").val();
	if (username!=null){
		 _url += "&username="+username;
	}
	if (keywords!=null){
		 _url += "&keywords="+keywords;
	}
	if (dotime1!=null){
		 _url += "&dotime1="+dotime1;
	}
	if (dotime2!=null){
		 _url += "&dotime2="+dotime2;
	}
        if(type!=""){
            _url += "&type="+type;
        }
        if(status!=""){
            _url += "&status="+status;
        }
        
	location.href=url+_url;
 
}

</script>
</div>
</div>
<!--用户中心的主栏目 结束-->
<#include "../../include/footer.html"> 